/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Hua YY
 * Date: 2024 —03 —04
 * Time: 10:11
 */
public class Date {
    public int year;
    public int month;
    public int day;

    public void setDay(int y,int m,int d){
       this.year = y;
       this.month = m;
       this.day = d;
    }

    public void printdate(){
        System.out.println("year = " + this.year);
        System.out.println("month = " + this.month);
        System.out.println("day = " + this.day);

//        System.out.println(this.year+ "/"  + this.month + "/"  +this.day);
        System.out.println("============================");
        System.out.println(this.year + this.month);
        System.out.println("============================");
        System.out.println(this.year + this.month + "/"  +this.day);
    }

    public static void main(String[] args) {
        Date d1 = new Date();
        Date d2 = new Date();
        Date d3 = new Date();
        d1.setDay(2024,3,3);
        d2.setDay(2024,3,4);
        d3.setDay(2024,3,5);
        d1.printdate();
        System.out.println("========");
        d2.printdate();
        System.out.println("========");
        d3.printdate();

    }
}
